const audioStartSwitch = false;
export default function openVoice(objs) { // 传入需转为语音的文本内容
	// const getAudioUrl = '';
	const audio = uni.createInnerAudioContext();
	audio.autoplay = true;
	audio.src = "https://api.oick.cn/txt/apiz.php?text=" + objs + "&spd=6";
	audio.play();
	audio.onError((e) => {
		audio.stop();
		console.log('音频播放错误: ' + JSON.stringify(e));
		// console.log('销毁音频实例');
		// audio.destroy(); //销毁音频实例
		// audio = null;
	})
}